package com.atguigu.lease.app.service.impl;

import com.atguigu.lease.model.vo.app.ApartmentDetailVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.lease.model.bean.ApartmentInfo;
import com.atguigu.lease.app.service.ApartmentInfoService;
import com.atguigu.lease.app.mapper.ApartmentInfoMapper;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
* @author 1
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service实现
* @createDate 2025-09-28 11:32:25
*/
@Service
public class ApartmentInfoServiceImpl extends ServiceImpl<ApartmentInfoMapper, ApartmentInfo>
    implements ApartmentInfoService{
    @Cacheable(value = "stgy:apartment" , key = "#id")
    @Override
    public ApartmentDetailVo getDetailById(Long id) {
        return baseMapper.selectApartmentDetailById(id);
    }
}




